package com.second.app.designpattern.rule.impl.lishitihuan.bad;

/**
 * @Author GYZ
 * @Date 2023/7/27
 * <pre>
 *
 * </pre>
 */
public class Main {

    public static void main(String[] args) {
        ClassA classA = new ClassA();
        System.out.println("11-3:"+classA.func1(11,3));
        System.out.println("1-8:"+classA.func1(1,8));

        System.out.println("============================");
        ClassB classB = new ClassB();

        System.out.println("11-3:"+classB.func1(11,3));
        System.out.println("1-8:"+classB.func1(1,8));
        System.out.println("11+3+9:"+classB.func2(11,3));
    }
}
